<!DOCTYPE html>
<html>
<head>
<title>Escrow Search</title>
<style>
li { margin: 1ex 0; }
th, td { padding: 0 1ex; }
th { text-align: right; }
</style>
</head>
<body>
{% if not volumes %}
  <p>No results found. Please try your search again.</p>
{% else %}
  <p>Note: clicking on a Volume UUID will retrieve the recovery passphrase and notify the owner.</p>
  <ol>
  {% for volume in volumes %}
    <li>
      <table>
        <tr><th>Volume UUID</th><td>
          <a href='/{{search_type}}/{{volume.volume_uuid}}?xsrf-token={{xsrf_token}}&json=0'>
            {{volume.volume_uuid}}
          </a>
        </td></tr>
        <tr><th>Hostname</th><td>{{volume.hostname}}</td></tr>
        {% if search_type == "filevault" %}
          <tr><th>Platform UUID</th><td>{{volume.platform_uuid}}</td></tr>
          <tr><th>Owner</th><td>{{volume.owner}}</td></tr>
          <tr><th>Creator</th><td>{{volume.created_by}}</td></tr>
          <tr><th>Serial</th><td>{{volume.serial}}</td></tr>
          <tr><th>Hard Disk Serial</th><td>{{volume.hdd_serial}}</td></tr>
        {% else %}
          <tr><th>DN</th><td>{{volume.dn}}</td></tr>
        {% endif %}
        <tr><th>Creation time (UTC)</th><td>{{volume.created}}</td></tr>
      </table>
    </li>
  {% endfor %}
  </ol>
{% endif %}
</body>
</html>
